{% extends 'base.html' %}
{% block content %}
{% load avatar_tags %}
{% load pagination_tags %}
<div class="aw-container-wrap">

    <div class="container">
        <div class="row">
            <div class="aw-content-wrap clearfix">
                <div class="col-sm-12 col-md-9 aw-main-content">
                    <!-- 新消息通知 -->
                    <div class="aw-mod aw-notification-box hide" id="index_notification">
                        <div class="mod-head common-head">
                            <h2>
                                <span class="pull-right"><a href="http://wenda.golaravel.com/setting/privacy/#notifications" class="text-color-999"><i class="icon icon-setting"></i> 通知设置</a></span>
                                <i class="icon icon-bell"></i>新通知<em class="badge badge-important" name="notification_unread_num">0</em>
                            </h2>
                        </div>
                        <div class="mod-body">
                            <ul id="notification_list"></ul>
                        </div>
                        <div class="mod-footer clearfix">
                            <a href="javascript:;" onclick="AWS.Message.read_notification(false, 0, false);" class="pull-left btn btn-mini btn-gray">我知道了</a>
                            <a href="/" class="pull-right btn btn-mini btn-success">查看所有</a>
                        </div>
                    </div>
                    <!-- end 新消息通知 -->
                    <!-- tab切换 -->
                    <ul class="nav nav-tabs aw-nav-tabs active hidden-xs">
                        <li><a href="/">等待回复</a></li>
                        <li><a href="/" id="sort_control_hot">热门</a></li>
                        <li><a href="/">推荐</a></li>
                        <li class="active"><a href="">最新</a></li>

                        <h2 class="hidden-xs"><i class="icon icon-list"></i> 发现</h2>
                    </ul>
                    <!-- end tab切换 -->


                    <div class="aw-mod aw-explore-list">
                        <div class="mod-body">
                            <div class="aw-common-list">
                                {% autopaginate allquestion 5 %}
                                {%for n in allquestion%}
                                <div class="aw-item " data-topic-id="572,747,492,756,">
                                    <a class="aw-user-name hidden-xs" data-id="1599" href="http://wenda.golaravel.com/people/lyz19940727" rel="nofollow">{% avatar n.questioner.user %}</a>	<div class="aw-question-content">
                                    <h4>


                                        <a href="comments/{{n.id}}/">{{n.title}}</a>
                                    </h4>
                                    <div class="pull-right hidden-xs contribute">
                                        <span class="pull-right text-color-999">贡献</span>
                                        <a class="aw-user-name" data-id="1600" href="http://wenda.golaravel.com/people/it%E7%94%B7%E9%82%A3%E7%82%B9%E4%BA%8B" rel="nofollow"><img src="http://wenda.golaravel.com/static/common/avatar-mid-img.png" alt=""></a>
                                    </div>

                                    <p>
                                        <a href="http://wenda.golaravel.com/people/it%E7%94%B7%E9%82%A3%E7%82%B9%E4%BA%8B" class="aw-user-name" data-id="1600">{{n.questioner.name}}</a>
                                        <span class="text-color-999">回复了问题 • 2 人关注 • 1 个回复 • 46 次浏览 • 4 天前				</span>
                                        <span class="text-color-999 related-topic hide"> •  来自相关话题</span>
                                    </p>
                                </div>
                                </div>
                                {% endfor %}
                            </div>
                        </div>
                        {% paginate %}
                        <!--<div class="mod-footer">-->
                        <!--<div class="page-control"><ul class="pagination pull-right"><li class="active"><a href="javascript:;">1</a></li><li><a href="/">2</a></li><li><a href="http://wenda.golaravel.com/sort_type-new__day-0__is_recommend-0__page-3">3</a></li><li><a href="http://wenda.golaravel.com/sort_type-new__day-0__is_recommend-0__page-4">4</a></li><li><a href="http://wenda.golaravel.com/sort_type-new__day-0__is_recommend-0__page-2">&gt;</a></li><li><a href="http://wenda.golaravel.com/sort_type-new__day-0__is_recommend-0__page-27">&gt;&gt;</a></li></ul></div>						</div>-->
                    </div>
                </div>

                <!-- 侧边栏 -->
                <div class="col-sm-12 col-md-3 aw-side-bar hidden-xs hidden-sm">
                    <div class="aw-mod">
                        <div class="mod-head">
                            <h3>站长寄语</h3>
                        </div>
                        <div class="mod-body">
                            <ul>
                                <!--<li><a href="http://wenda.golaravel.com/feature/1">Composer中国镜像</a></li>-->
                                <!--<img src="http://pic.nipic.com/2007-11-09/2007119122519868_2.jpg" style="height: 20px;width: 20px;">-->
                                <p>同学们,当你们奋力前进的时候,回头望一望,和昔日的同窗聊聊天～</p>
                            </ul>
                        </div>
                    </div>
                    <div class="aw-mod aw-text-align-justify">
                        <div class="mod-head">
                            <a href="/" class="pull-right">更多 &gt;</a>
                            <h3>热门问题</h3>
                        </div>
                        <div class="mod-body">
                            {% for s in allquestion|slice:':5'%}
                            <dl>
                                <dt class="pull-left aw-border-radius-5">
                                    <a href="/"><img alt="" src="http://wenda.golaravel.com/static/common/topic-mid-img.png"></a>
                                </dt>
                                <dd class="pull-left">
                                    <p class="clearfix">
						<span class="topic-tag">
							<a href="/" class="text" data-id="118">{{s.title}}</a>
						</span>
                                    </p>
                                    <p><b>33</b> 个问题, <b>6</b> 人关注</p>
                                </dd>
                            </dl>
                            {% endfor %}
                            <!--<dl>-->
                                <!--<dt class="pull-left aw-border-radius-5">-->
                                    <!--<a href="http://wenda.golaravel.com/topic/Composer"><img alt="" src="http://wenda.golaravel.com/static/common/topic-mid-img.png"></a>-->
                                <!--</dt>-->
                                <!--<dd class="pull-left">-->
                                    <!--<p class="clearfix">-->
						<!--<span class="topic-tag">-->
							<!--<a href="http://wenda.golaravel.com/topic/Composer" class="text" data-id="24">Composer</a>-->
						<!--</span>-->
                                    <!--</p>-->
                                    <!--<p><b>46</b> 个问题, <b>7</b> 人关注</p>-->
                                <!--</dd>-->
                            <!--</dl>-->
                            <!--<dl>-->
                                <!--<dt class="pull-left aw-border-radius-5">-->
                                    <!--<a href="http://wenda.golaravel.com/topic/测试"><img alt="" src="http://wenda.golaravel.com/static/common/topic-mid-img.png"></a>-->
                                <!--</dt>-->
                                <!--<dd class="pull-left">-->
                                    <!--<p class="clearfix">-->
						<!--<span class="topic-tag">-->
							<!--<a href="http://wenda.golaravel.com/topic/测试" class="text" data-id="764">测试</a>-->
						<!--</span>-->
                                    <!--</p>-->
                                    <!--<p><b>2</b> 个问题, <b>1</b> 人关注</p>-->
                                <!--</dd>-->
                            <!--</dl>-->
                            <!--<dl>-->
                                <!--<dt class="pull-left aw-border-radius-5">-->
                                    <!--<a href="http://wenda.golaravel.com/topic/mongodb"><img alt="" src="http://wenda.golaravel.com/static/common/topic-mid-img.png"></a>-->
                                <!--</dt>-->
                                <!--<dd class="pull-left">-->
                                    <!--<p class="clearfix">-->
						<!--<span class="topic-tag">-->
							<!--<a href="http://wenda.golaravel.com/topic/mongodb" class="text" data-id="756">mongodb</a>-->
						<!--</span>-->
                                    <!--</p>-->
                                    <!--<p><b>2</b> 个问题, <b>1</b> 人关注</p>-->
                                <!--</dd>-->
                            <!--</dl>-->
                            <!--<dl>-->
                                <!--<dt class="pull-left aw-border-radius-5">-->
                                    <!--<a href="http://wenda.golaravel.com/topic/Login"><img alt="" src="http://wenda.golaravel.com/static/common/topic-mid-img.png"></a>-->
                                <!--</dt>-->
                                <!--<dd class="pull-left">-->
                                    <!--<p class="clearfix">-->
						<!--<span class="topic-tag">-->
							<!--<a href="http://wenda.golaravel.com/topic/Login" class="text" data-id="747">Login</a>-->
						<!--</span>-->
                                    <!--</p>-->
                                    <!--<p><b>2</b> 个问题, <b>1</b> 人关注</p>-->
                                <!--</dd>-->
                            <!--</dl>-->
                        </div>
                    </div>
                    <div class="aw-mod aw-text-align-justify">
                        <div class="mod-head">
                            <a href="/" class="pull-right">更多 &gt;</a>
                            <h3>热门用户</h3>
                        </div>
                        <div class="mod-body">
                            {%for u in usergroup%}
                            <dl>
                                <dt class="pull-left aw-border-radius-5">
                                    <a href="/"><img alt="" src="http://wenda.golaravel.com/static/common/avatar-mid-img.png"></a>
                                </dt>
                                <dd class="pull-left">
                                    <a href="/" data-id="740" class="aw-user-name">{{u.0}}</a>
                                    <p class="signature"></p>
                                    <p><b>{{u.1}}</b> 个问题, <b>1</b> 次赞同</p>
                                </dd>
                            </dl>
                            {% endfor %}
                        </div>
                    </div>				</div>
                <!-- end 侧边栏 -->
            </div>
        </div>
    </div>
</div>

{% endblock %}